package ru.alt22.visor.php.core.codegen;

abstract public class PHPIndentable implements PHPFileEntry {
	private String name;
	
	public PHPIndentable(String name) {
		setName(name);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public String toString() {
		return toString(0);
	}

	protected String indent(int indent) {
		String result = new String("");
		for (int i = 0; i < indent; i++) {
			result += "\t";
		}
		return result;
	}

}